
//3
let arr = [12,34,32,89,4]

// es5
console.log(Math.min.apply(Math,arr));

// es6
console.log(Math.min(...arr));


// 5
var a = 10
var obj = {
    a:20,
    fn(){
        setTimeout(()=>{
            console.log(this.a);
        })
    }
}
obj.fn()